package com.springboot.cloud.demos.feign.rest;

import com.springboot.cloud.common.core.entity.vo.Result;
import com.springboot.cloud.demos.feign.service.AppVersionService;
import com.springboot.cloud.demos.feign.service.BannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
public class AppVersionController {

    @Autowired
    private AppVersionService appVersionService;

    @GetMapping("/open/appVersion")
    public Result appVersion(@RequestParam("platform") String platform) {
        return appVersionService.last(platform);
    }

}
